package com.gxa.modules.entity;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.GeneratedValue;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import java.util.Date;
import java.math.BigDecimal;
/** 
 * @team mackie Studio 
 * @Author kk 
 * @Date 2023-03-17 20:15:22 
 */
@Entity
@Data
@TableName("crm_purchase" )
public class CrmPurchase  implements Serializable {

	private static final long serialVersionUID =  6827127935808083345L;

	/**
	 * 采购ID
	 */
	@Id
	@TableId(value = "p_id", type = IdType.AUTO)
	private Integer pId;

	/**
	 * 商品主键ID
	 */
   	@TableField("g_id" )
	private Integer gId;

	/**
	 * 采购数量
	 */
   	@TableField("p_num" )
	private Long pNum;

	/**
	 * 采购总折扣
	 */
   	@TableField("p_discount" )
	private BigDecimal pDiscount;

	/**
	 * 付款方式
	 */
   	@TableField("p_pay" )
	private String pPay;

	/**
	 * 运费
	 */
   	@TableField("p_fare" )
	private Long pFare;

	/**
	 * 备注
	 */
   	@TableField("p_remark" )
	private String pRemark;

	/**
	 * 采购日期
	 */
	@JsonFormat(pattern="yyyy-MM-dd hh:mm:ss",timezone="GMT+8")
   	@TableField("p_date" )
	private Date pDate;
}
